#include <JXQCore/JXQGlobal>
#ifdef J_OS_WIN

#include "jprocess_p.h"
#include <windows.h>

// CreateChildProcess

namespace JXQ
{

void JProcessPrivate::run()
{

}

/*----------------------------------------------------------------------------------*/

JHandle JProcess::start(const JString &fileName, JStringList args, CallBack &&callBack)
{
    J_UNUSED(fileName);
    J_UNUSED(callBack);

    return 0;
}

JHandle JProcess::start
    (ProcessMain &&processMain, const JStringList &args, CallBack &&callBack)
{
    J_UNUSED(processMain);
    J_UNUSED(args);
    J_UNUSED(callBack);

    return 0; //parent
}

JString JProcess::readStdError()
{
    return JString();
}

bool JProcess::open(OpenMode mode)
{
    J_UNUSED(mode);
    return false;
}

bool JProcess::close()
{
    return false;
}

bool JProcess::kill()
{
    return false;
}

bool JProcess::kill(JHandle handle)
{
    J_UNUSED(handle);
    return false;
}

int64_t JProcess::size() const
{
    return 0;
}

int64_t JProcess::virtualRead(int64_t bufSize, void *buffer)
{
    J_UNUSED(bufSize);
    J_UNUSED(buffer);
    return 0;
}

int64_t JProcess::virtualWrite(int64_t bufSize, const void *buffer)
{
    J_UNUSED(bufSize);
    J_UNUSED(buffer);
    return 0;
}

} //namespace JXQ

#endif
